<template>
    <card class="p-8">
        <heading><a :href="'/users/'+user.id">{{user.name}}</a></heading>
        <div class="flex justify-between mt-6">
            <tig-like :action="'/users/'+user.id+'/like'" :liked-count="user.likes_count"></tig-like>
            <div><a :href="'/users/'+user.id+'/repositories'">{{user.repositories_count}}作品</a></div>
            <div><a :href="'/users/'+user.id+'/chapters'">{{user.chapters_count}}章节</a></div>
            <div>{{user.comments_count}}评论</div>
        </div>
    </card>
</template>

<script>
    export default {
        name: "TigProfileCard", props: {user: {type: Object, required: true}}
    }
</script>

<style scoped>

</style>